/* 全局自定义变量 */
:root {
    --vivo-blue: #1976d2;
    --vivo-cyan: #00e5ff;
    --vivo-purple: #7b1fa2;
    --vivo-dark: #121212;
    --vivo-card-bg: #1e1e1e;
    --neon-glow: 0 0 10px rgba(0, 229, 255, 0.7),
        0 0 20px rgba(0, 229, 255, 0.5),
        0 0 30px rgba(0, 229, 255, 0.3);
}
/* @keyframes fadeInUp{
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }

} */
body {
    background-color: #121212;
}

/* 导航栏制作 */
.navbar {
    background-color: rgba(18, 18, 18, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.navbar-brand,
.navbar-brand:hover {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--vivo-cyan), var(--vivo-blue));
    font-weight: 700;
    /* 文字剪切 */
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover {
    /* 文字阴影 */
    text-shadow: var(--neon-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vivo-cyan), var(--vivo-blue));
    transition: all .3s;
}

.nav-link:hover::after {
    width: 100%;
    background: linear-gradient(90deg, var(--vivo-cyan), var(--vivo-blue));
}

.icons a {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 10px;
}

.icons a:hover {
    text-shadow: var(--neon-glow);
    color: var(--vivo-cyan);
}

.banner {
    height: 50vw;
    width: 100%;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(rgb(0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
    margin-top: 40px;
}

.banner .carousel-item img {
    width: 100%;
    height: 50vw;
}

.carousel-caption {
    bottom: 20rem;
}

.carousel-indicators {
    margin-bottom: 19rem;
}

/* 热门产品模块 */

.hot-product,
.future-tech .info {
    color: rgba(255, 255, 255, 0.7);
}
/* .hot-product,
.future-tech{
    animation: fadeInUp 0.8s ease-out forwards;
} */
 
/*  卡片模块*/
.row .col {
    margin-bottom: 1.5rem;
}

.card {
    background-color: var(--vivo-card-bg);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;

}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
}

.card-img {
    padding: 26px;
    background: #292929;
}

.card-img img {
    animation: imgScale 3s ease-in-out infinite;
}

@keyFrames imgScale {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }


}

.card-title {
    font-size: 1.4rem;
}

.card-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-body .price {
    font-size: 1.5rem;
    color: var(--vivo-cyan);
}

/* 为什么要加上.card-body才能正常线上边框 */
.card-body .btn {
    border-radius: 30px;
    width: 100%;
    background: none;
    border: 2px solid var(--vivo-cyan);
    color: var(--vivo-cyan);
    padding: 10px 0;
}

.card-body .btn:hover {
    box-shadow: var(--neon-glow);
}

/* 未来科技制作 */
.future-tech {
    position: relative;
    background: url('../img/bg1.avif') no-repeat;
    background-position: center;
    background-size: cover;
    /* 背景图片固定定位,页面滚动时，背景图不跟着滚动 */
    background-attachment: fixed;

}

/* 这个地方要用::before,不能用::afterfore */
.future-tech::before {
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.future-tech .row .col {
    text-align: center;
}

.future-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.future-desc {
    color: rgba(255, 255, 255, 0.7);
}

.future-icon {
    font-size: 3rem;
    color: var(--vivo-cyan);
    text-shadow: var(--neon-glow);
    margin-bottom: 20px;
}

/* 底部导航部分 */
.footer {
    background-color: #0a0a0a;
    padding-top: 80px;
}

.footer dt {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #fff;
}

.footer dt::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--vivo-cyan), var(--vivo-blue));
}

.footer dd>a {
    /* 块级盒子才能做变化效果 */
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.footer dd>a:hover {
    color: var(--vivo-cyan);
    transform: translateX(5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 通过媒体查询 修改一些小细节问题 */
@media (max-width:768px){
    .carousel-caption, .carousel-indicators {
        display: none;
    }
}
@media (max-width:992px){
    .navbar{
        padding: 5px 0;
    }
    .banner .carousel-caption {
        bottom: 11rem;
    }
    .banner .carousel-indicators {
        margin-bottom: 10rem;
    }
}
@media (max-width:1220px){
    .carousel-caption {
        bottom: 18rem;
    }
    .carousel-indicators {
        margin-bottom: 17rem;
    }
}

/* 自定义滚动条样式 */
/* 滚动条设置宽度和高度 */
::-webkit-scrollbar{
    width: 8px;
}

/* 设置轨道背景色、圆角 */
::-webkit-scrollbar-track{
    background: var(--vivo-dark);
}
/* 设置滑块样式 */
::-webkit-scrollbar-thumb{
    background: linear-gradient(var(--vivo-blue), var(--vivo-cyan));
    border-radius: 10px;
}